home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / decprom / RCS / machStubs.c,v < prev    next >
Encoding:
Text File  |  1990-02-17  |  1.5 KB  |  75 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     90.02.16.16.14.14;  author shirriff;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @/* 
  26.  * machCode.c --
  27.  *
  28.  *     C code for the mach module.
  29.  *
  30.  * Copyright 1989 Regents of the University of California
  31.  * Permission to use, copy, modify, and distribute this
  32.  * software and its documentation for any purpose and without
  33.  * fee is hereby granted, provided that the above copyright
  34.  * notice appear in all copies.  The University of California
  35.  * makes no representations about the suitability of this
  36.  * software for any purpose.  It is provided "as is" without
  37.  * express or implied warranty.
  38.  */
  39.  
  40. #include "sprite.h"
  41. /*
  42.  *  Flag used by routines to determine if they are running at
  43.  *  interrupt level.
  44.  */
  45. Boolean mach_AtInterruptLevel;
  46. /*
  47.  *  Count of number of ``calls'' to enable interrupts minus number of calls
  48.  *  to disable interrupts.  Kept on a per-processor basis.
  49.  */
  50. int mach_NumDisableInterrupts[1];
  51. int *mach_NumDisableIntrsPtr = mach_NumDisableInterrupts;
  52. #ifdef notdef
  53. Mach_SetHandler() { }
  54. ReturnStatus
  55. Mach_Probe(size, srcAddress, destAddress)
  56.   int               size;   
  57.   Address     srcAddress;    
  58.   Address     destAddress;    
  59. {
  60.     switch (size) {
  61.     case 1:
  62.     * (char *) destAddress = * ( char *) srcAddress;
  63.     break;
  64.     case 2:
  65.     * (short *) destAddress = * ( short *) srcAddress;
  66.     break;
  67.     case 4:
  68.     * (int *) destAddress = * ( int *) srcAddress;
  69.     break;
  70.     }
  71.     return (SUCCESS);
  72. }
  73. #endif
  74. @
  75.